Skip to main content

currentTime

Type​

property

Summary​

Specifies the elapsed time in a movie or sound.

Syntax​

set the currentTime of <player> to <number>

Description​

Use the currentTime property during playing to find out the progress of the movie or sound, or to skip ahead or back.

The currentTime is the number of the interval where the current position is.

The number of intervals per second is specified by the player's timeScale property. The total number of intervals is given in the player's duration property.

Examples​

set the currentTime of player "Open Door" to 300

Value​

NameTypeDescription

value

The currentTime of a player is an integer between zero and the player's duration.

command: start, play

glossary: property

keyword: integer, player

message: playPaused, playStarted

object: player

property: currentFrame, callbacks, duration

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?